import request from '@/utils/request'

// 获取列表数据
export function buildingGet(params) {
  return request({
    url: '/park/building',
    params
  })
}
// 新增
export function buildingAdd(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}

// 楼层详情
export function buildingXiang(id) {
  return request({
    url: `/park/building/${id}`
  })
}

// 楼层修改
export function buildingPut(data) {
  return request({
    url: '/park/building',
    method: 'PUT',
    data
  })
}

// 楼层删除
export function delBuildingListAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
